package com.test.kotlin03

import java.io.File

fun alsoTest(){
    var fileContests:List<String>
    var file = File("/Users/lwb/AndroidStudioProjects/demo/KotlinDemo/kotlin01/src/main/java/com/test/kotlin03/i have a dream_copy.txt")
        .also {
            println(it.name) //也，返回的也是接收者对象
        }.also {
            fileContests = it.readLines()
        }

    println(fileContests)
}

fun main(){
    alsoTest()
}
